package com.island.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.island.dao.TestDao;
import com.island.model.Admin;
import com.pollexsoft.base.dao.EntityDao;
import com.pollexsoft.base.service.BaseService;

@Service
public class TestService extends BaseService<Admin, java.lang.String> {

	@Autowired
	private TestDao testDao;

	@Override
	protected EntityDao getEntityDao() {
		// TODO Auto-generated method stub
		return this.testDao;
	}

	public List<Admin> findBySql() {

		return testDao.find();
	}

	public void deleteAdmin(int id) {

		testDao.deleteAdmin(id);

	}

	public void updateAdmin(Admin admin) {

		testDao.updateAdmin(admin);

	}

	public void insertAdmin(Admin admin) {

		testDao.inserAdmin(admin);

	}

}
